import request from '@/utils/request'
import store from 'store'

export const apiConfig = () => request.get('user_multi_switch/getConfig')

export const apiRelevanceList = () => request.get('user_multi_switch/relevanceList')

export const apiBindUser = (data) => request.post('user_multi_switch/bindUser', data)

export const apiUnBindUser = (data) => request.post('user_multi_switch/unbindUser', data)

export const apiLoginUser = (data) => request.post('user_multi_switch/loginUser', {
	...data,
	terminal: store.getters.client
})